class CreateMatchesFightersJoinTable < ActiveRecord::Migration
  def change
    create_table :matches_fighters, id: false do |t|
      t.references :match,    :null => false
      t.references :fighter,  :null => false

      t.boolean :is_judge
      t.integer :winner_id
      t.integer :judge_score
    end
  end
end
